package com.swh.dao;


import com.swh.dao.base.BaseDao;
import com.swh.entity.QualificationCondition;
import com.swh.entity.SysArea;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysAreaDao extends BaseDao<SysArea> {
    @Override
    int insert(SysArea sysArea);

    @Override
    int delete(int id);

    @Override
    int update(SysArea sysArea);

    @Override
    SysArea load(int id);

    @Override
    List<SysArea> pageList(int pageNum, int pageSize);

    @Override
    int pageListCount(int offset, int pageSize);

    List<Map> selectPage(@Param("pageNull") Integer pageNum, @Param("pageSize") Integer pageSize,
                         @Param("condition") QualificationCondition condition);

    List<SysArea> findAll(SysArea sysArea);

    List<SysArea> findAll2();


    List<SysArea> findAllChild(@Param("id") Integer id);



   int deleteChild(@Param("ids") List<Long> ids);




}